<?php
define('APP_NAME', 'FOR-FUN.Server');

//开发配置定义
//当前环镜
define('PROJ_ENV', 'dev');

//环镜参数
$_EVN_PARAM_ALL = include('env.config.php');
$_EVN_PARAM = $_EVN_PARAM_ALL[PROJ_ENV];
$_DB_MYSQL = isset($_EVN_PARAM) ? $_EVN_PARAM['DATABASE_MYSQL'] : array();

//加载多语言
$_LANG = include('lang.config.php');

//日志目录
define('APP_LOG_DIR', PROJECT_ROOT . 'runtime/log');

define('APP_STATIC_IMG_URL_HEAD', $_EVN_PARAM['APP_STATIC_IMG_URL_HEAD']);

define('APP_DATA_LIST_PAGE_SIZE', 20);

define('APP_COUPLET_MAX_REPLY_OF_ONE', 50);

define('APP_WEIRD_MAX_ADD_ONE_DAY', 5);

define('APP_MAX_COMMENT_ONE_DAY_OF_ONE', 50);

// 注册API TOKEN验证过滤器
\Sofical\Restphp\utils\RestFilterManage::register('forfun\filter\AuthFilter', 'check');
